package com.pth.admin.action;

import com.opensymphony.xwork2.ActionSupport;
import com.pth.service.JianjieService;
import com.pth.service.KnowledgeService;
import com.pth.service.NewsService;
import com.pth.service.NoticeService;
import com.pth.service.PolicyService;
import com.pth.service.ZhinanService;
import com.pth.utils.lucene.CreateIndex;

public class CreateIndexActionAdmin extends ActionSupport {

	
	private JianjieService jianjieService;
	
	private KnowledgeService knowledgeService;
	
	private NewsService newsService;
	
	private NoticeService noticeService;
	
	private PolicyService policyService;
	
	private ZhinanService zhinanService;


	public JianjieService getJianjieService() {
		return jianjieService;
	}

	public void setJianjieService(JianjieService jianjieService) {
		this.jianjieService = jianjieService;
	}

	public KnowledgeService getKnowledgeService() {
		return knowledgeService;
	}

	public void setKnowledgeService(KnowledgeService knowledgeService) {
		this.knowledgeService = knowledgeService;
	}

	public NewsService getNewsService() {
		return newsService;
	}

	public void setNewsService(NewsService newsService) {
		this.newsService = newsService;
	}

	public NoticeService getNoticeService() {
		return noticeService;
	}

	public void setNoticeService(NoticeService noticeService) {
		this.noticeService = noticeService;
	}

	public PolicyService getPolicyService() {
		return policyService;
	}

	public void setPolicyService(PolicyService policyService) {
		this.policyService = policyService;
	}

	public ZhinanService getZhinanService() {
		return zhinanService;
	}

	public void setZhinanService(ZhinanService zhinanService) {
		this.zhinanService = zhinanService;
	}
	
	
	@Override
	public String execute() throws Exception {

		jianjieService.createIndex();
		zhinanService.createIndex();
		newsService.createIndex();
		noticeService.createIndex();
		policyService.createIndex();
		knowledgeService.createIndex();
		
		
		
		return SUCCESS;
	}
	
	
	
	
}
